package com.aizhixin.lab.project.course.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Data
@Entity(name = "c_exercises")
public class TeacherExercises {
    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "task_id")
    private String taskId;
    @Column(name = "question_content")
    private String questionContent;
    @Column(name = "analysis")
    private String analysis;
    @Column(name = "answer")
    private String answer;
    @Column(name = "order_num")
    private Integer orderNum;
    @Column(name = "question_type")
    private Integer questionType;
    /**
     * 语言
     */
    @Column(name="language")
    private String language;
    /**
     * 简答题关键字(多个关键字以逗号隔开)
     */
    @Column(name="keyword")
    private String keyword;
    /**
     * 参考代码
     */
    @Column(name="reference_code")
    private String referenceCode;
    @Column(name = "created_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdDate=new Date();
    @Column(name = "created_by")
    private Long createdBy;

}
